//
//  AppDataBaseManager.h
//  Water
//
//  Created by yh on 2017/11/30.
//  Copyright © 2017年 chenguibang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <FMDB.h>
#import "DrinkRecord.h"
#import "DBRecord.h"
@interface AppDataBaseManager : NSObject

@property (nonatomic, strong) FMDatabaseQueue *dataBaseQueue;

+ (instancetype)shareManager;

- (void)addDrinkRecord:(DrinkRecord *)drinkRecord;

- (void)getTodayDrinkcallBack:(void (^)(int amount))callBack;

- (void)getTodayRecordscallBack:(void (^)(NSArray *records))callBack;

- (void)getRecordsWith:(NSDate *)date callBack:(void (^)(NSArray *records))callBack;

- (void)getRecordWith:(NSDate *)startTime end:(NSDate *)endTime callBack:(void (^)(NSArray *records))callBack;

@end
